sms.messages is being deprecated from twilio

Albert Sun 9 年之前
父节点
当前提交
97d7c799bb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/models/agents/twilio_agent.rb

+ 1 - 1
app/models/agents/twilio_agent.rb

@@ -66,7 +66,7 @@ module Agents
66 66
     end
67 67
 
68 68
     def send_message(message)
69
-      client.account.sms.messages.create :from => interpolated['sender_cell'],
69
+      client.account.messages.create :from => interpolated['sender_cell'],
70 70
                                          :to => interpolated['receiver_cell'],
71 71
                                          :body => message
72 72
     end